<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="stylesheet" href="/css/font.css">
    <link rel="stylesheet" href="/css/xadmin.css">
    <link rel="stylesheet" href="/css/theme4109.min.css">
    <!-- <link rel="stylesheet" href="./css/theme5.css"> -->
    <script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
    <script th:src="@{/js/jquery-3.6.0.js}"></script>
    <script th:src="@{/js/administrative/smc_yz.js}"></script>
    <script src="/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/js/xadmin.js"></script>

    <style>

        .myTable {
            width: 97%;
            margin: 0px auto;
            font-size: 14px;

            margin-top: 20px;
            text-align: center;
        }

        .myText {
            width: 50%;
        }

        .myTable tr td {
            line-height: 20px !important;

        }
    </style>
    <title>用章申请</title>
</head>
<body onload="yzShen()">

<table style="background-color: white ;height: 50px;margin: 12px auto;width: 98%">
    <tr>
        <td align="center" >
            <h2>[ 用章申请 ]</h2>
        </td>
    </tr>
</table>

<table class="layui-table myTable" style="width: 98%; margin: 0px auto">
    <tr align="right">
        <td align="right">姓名：</td>
        <td><input type="text" class="layui-input" readonly th:value="${session.user.name}"></td>
        <td align="right">部门：</td>
        <td><input type="text" class="layui-input" readonly th:value="${session.buMeng.departmentname}"></td>

    </tr>
    <tr align="right">
        <td align="right">申请时间：</td>
        <td><input type="date" class="layui-input yzTime"/></td>
        <td align="right">用章类型：</td>
        <td><select id="yzlx" class="layui-input yzName" onchange="yzgb()">
            <option value="0">选择用章</option>
            <option th:each="yz : ${yongzhang}" th:value="${yz.getId()}" th:text="${yz.getType()}"></option>
        </select></td>
    </tr>
    <tr align="right">
        <td align="right">接收部门：</td>
        <td><select class="layui-input yzDD">
            <!--            <option value=""></option>-->
        </select></td>
    </tr>
    <tr align="right">
        <td align="right">用章事由：</td>
        <td colspan="4">
            <textarea class="layui-textarea reason" rows="4"></textarea>
        </td>
    </tr>

    <tr>
        <td colspan="4" align="center"><input type="button" class="layui-btn layui-btn-sm" lay-submit lay-filter="formDemo"
                                              value="&nbsp;&nbsp;保&nbsp;存&nbsp;&nbsp;"
                                              onclick="yongZhang()"/>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <input type="button" class="layui-btn layui-btn-primary layui-btn-sm" value="&nbsp;&nbsp;重&nbsp;置&nbsp;&nbsp;" onclick="location.reload()"/>
        </td>
    </tr>
</table>
</body>
<script>
    //弹层设置
    layui.use("layer", function () {
        var layer = layui.layer;
    });

</script>
</html>